Fix restart/poweroff properly. From aq.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 26 Jul 2005 10:09:06 +0000 (10:09 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 26 Jul 2005 10:09:06 +0000 (10:09 +0000)
linux-2.6-xen-sparse/arch/xen/kernel/reboot.c

index f294de4ff8415136f6b2284053201a06926bc5f8..6ce4879cef1a6213cc2a1e9cffee34c190be0592 100644 (file)
@@ -187,7 +187,7 @@ static int shutdown_process(void *__unused)
     switch ( shutting_down )
     {
     case CMSG_SHUTDOWN_POWEROFF:
-        if ( execve("/sbin/halt", poweroff_argv, envp) < 0 )
+        if ( execve("/sbin/poweroff", poweroff_argv, envp) < 0 )
         {
             sys_reboot(LINUX_REBOOT_MAGIC1,
                        LINUX_REBOOT_MAGIC2,
@@ -197,7 +197,7 @@ static int shutdown_process(void *__unused)
         break;
 
     case CMSG_SHUTDOWN_REBOOT:
-        if ( execve("/sbin/shutdown", restart_argv, envp) < 0 )
+        if ( execve("/sbin/reboot", restart_argv, envp) < 0 )
         {
             sys_reboot(LINUX_REBOOT_MAGIC1,
                        LINUX_REBOOT_MAGIC2,